package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.ModuleStyleTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class ModuleStyleTabService implements BaseInterface<ModuleStyleTab> {
	private static final Logger log = LoggerFactory
			.getLogger(ModuleStyleTabService.class);
//	private BaseDao<ModuleStyleTab> moduleStyleTabDao = SpringBeanFactory.moduleStyleTabDao;
	private BaseDao<ModuleStyleTab> moduleStyleTabDao;
	
	public ModuleStyleTab get(Integer id) throws Exception {
		return moduleStyleTabDao.get(id);
	}

	public List<ModuleStyleTab> getAll() throws Exception {
		return moduleStyleTabDao.getAll();
	}

	public ModuleStyleTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<ModuleStyleTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(ModuleStyleTab obj) throws Exception {

	}

	public void update(ModuleStyleTab obj) throws Exception {

	}

	public void delete(ModuleStyleTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<ModuleStyleTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return moduleStyleTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		moduleStyleTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return moduleStyleTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<ModuleStyleTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return moduleStyleTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		moduleStyleTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return moduleStyleTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setModuleStyleTabDao(BaseDao<ModuleStyleTab> moduleStyleTabDao) {
		this.moduleStyleTabDao = moduleStyleTabDao;
	}
	
}